package com.xj.demo.gcdemo;

import java.util.ArrayList;
import java.util.List;

public class GCLogDemo {
    public static void main(String[] args) {

        while (true){
            List<byte[]> list = new ArrayList<>();
            for (int i = 0; i < 10; i++) {
                list.add(new byte[1024 * 10]);
            }
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.gc();
        }
    }
}
